
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.TimeZone;
import com.cmc.dao.TimeZoneDao;
import com.cmc.service.TimeZoneManager;
/*
* @aegis.mapping
*/
public class TimeZoneManagerImpl extends BaseManager implements TimeZoneManager {
    private TimeZoneDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setTimeZoneDao(TimeZoneDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.TimeZoneManager#getTimeZones(com.cmc.model.TimeZone)
     */
    public List getTimeZones(final TimeZone timeZone) {
        return dao.getTimeZones(timeZone);
    }

    /**
     * @see com.cmc.service.TimeZoneManager#getTimeZone(String id)
     */
    public TimeZone getTimeZone(final String id) {
        return dao.getTimeZone(new Long(id));
    }

    /**
     * @see com.cmc.service.TimeZoneManager#saveTimeZone(TimeZone timeZone)
     */
    public void saveTimeZone(TimeZone timeZone) {
        dao.saveTimeZone(timeZone);
    }

    /**
     * @see com.cmc.service.TimeZoneManager#removeTimeZone(String id)
     */
    public void removeTimeZone(final String id) {
        dao.removeTimeZone(new Long(id));
    }
}
